/**
 * 
 */
package com.iknight.mgr.core.shiro;

import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource;

/**
 * @author Jeryzym
 *
 */
public class MgrAuthInfo extends SimpleAuthenticationInfo {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String userId;

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public MgrAuthInfo(PrincipalCollection principals, Object credentials, String userId) {
		super(principals, credentials);
		this.userId = userId;
	}

	public MgrAuthInfo(Object principal, Object credentials, String realmName, String userId) {
		super(principal, credentials, realmName);
		this.userId = userId;
	}

	public MgrAuthInfo(PrincipalCollection principals, Object hashedCredentials, ByteSource credentialsSalt,
			String userId) {
		super(principals, hashedCredentials, credentialsSalt);
		this.userId = userId;
	}

	public MgrAuthInfo(Object principal, Object hashedCredentials, ByteSource credentialsSalt, String realmName,
			String userId) {
		super(principal, hashedCredentials, credentialsSalt, realmName);
		this.userId = userId;
	}

}
